package com.yc.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jdk.jfr.Description;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("Orders")
@Data
@NoArgsConstructor
public class Orders {
    @TableId("orderId")
    private Long orderId ;// '订单id',

    @TableField("userId")
    private Long userId ;// '用户id',
    @TableField("addressId")
    private Long addressId ;//'收货地址id',
    @TableField("paymentType")
    private Integer  paymentType ;//'支付方式(1-支付宝 2-微信 3-银行卡)',

    @TableField("paymentTime")
    private LocalDateTime paymentTime ;// '支付时间',
    @TableField("orderStatus")
    private Integer orderStatus ;  // '状态(0-已取消 1-待付款 2-待发货 3-待收货 4-待评价 5-退款/售后) ',
    @TableField("shippingTime")
    private LocalDateTime shippingTime ; // '发货时间',
    @TableField("updateTime")
    private LocalDateTime updateTime ; // '最新操作时间',
    @TableField("remark")
    private String remark ; // '备注'
    @TableField("redPacketRecordId")
    private Long redPacketRecordId ; // '使用的红包领取记录ID',
    @TableField("redPacketDiscountAmount")
    private Double redPacketDiscountAmount ; // '红包优惠金额',
}

